<template>
<div>
<h2 class='name'>我是{{name}}</h2>
 <router-view></router-view>
</div>
</template>

<script>
export default {
    name:'School',
    data(){
        return {
            name:'学校组件'
        }
    }
    ,mounted(){
        console.log(this.$route,'我是school的打印')
    }
}
</script>


<style>
    .name{
        background: lightblue;
    }
</style>